package de.polygonal.motor2.math 
{
	public class Tri2 
	{
		public var a:V2;
		public var b:V2;
		public var c:V2;
		public var cm:V2;
		
		public var next:Tri2;
		public var area:Number;
		
		public function Tri2(a:V2, b:V2, c:V2)
		{
			this.a = a;
			this.b = b;
			this.c = c;
			
			area = ((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x)) / 2;
			
			cm = new V2((a.x + b.x + c.x) / 3, (a.y + b.y + c.y) / 3);
		}
	}
}